From e1c911a4b476d49a87fda357e463a1a2bbcca7a1 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Fri, 23 Feb 2024 10:31:18 -0600 Subject: [PATCH] Upgrade from psycopg2 to psycopg3; drop python <= v3.5, add v3.8-v3.11 --- setup.py | 6 ++++-- src/pgwui_common/check_settings.py | 6 +++--- tox.ini | 8 +++++--- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 089b032..bd2d6fa 100644 --- a/setup.py +++ b/setup.py @@ -114,10 +114,12 @@ setup( # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', ], # What does your project relate to? diff --git a/src/pgwui_common/check_settings.py b/src/pgwui_common/check_settings.py index 1cdc1e2..2d48224 100644 --- a/src/pgwui_common/check_settings.py +++ b/src/pgwui_common/check_settings.py @@ -1,4 +1,4 @@ -# Copyright (C) 2018, 2019, 2020 The Meme Factory, Inc. +# Copyright (C) 2018, 2019, 2020, 2024 The Meme Factory, Inc. # http://www.karlpinc.com/ # This file is part of PGWUI_Common. @@ -65,9 +65,9 @@ def validate_setting_values(errors, settings): ''' pgwui_settings = settings['pgwui'] - # pg_host can be missing, it defaults to the Unix socket (in psycopg2) + # pg_host can be missing, it defaults to the Unix socket (in psycopg3) - # pg_port can be missing, it defaults to 5432 (in psycopg2) + # pg_port can be missing, it defaults to 5432 (in psycopg3) # default_db can be missing, then the user sees no default diff --git a/tox.ini b/tox.ini index 066bc0e..50b6067 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,14 @@ [tox] -envlist = py{34,35,36,37} +envlist = py{36,37,38,39,310,311} [testenv] basepython = - py34: python3.4 - py35: python3.5 py36: python3.6 py37: python3.7 + py38: python3.8 + py39: python3.9 + py310: python3.10 + py311: python3.11 deps = check-manifest cmarkgfm -- 2.34.1